package com.copd.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@ApiModel(description = "角色实体")
@Data
public class Role {
    
    @ApiModelProperty(value = "角色ID", example = "1")
    private Integer roleId;
    
    @ApiModelProperty(value = "角色名称", required = true, example = "系统管理员")
    private String roleName;
    
    @ApiModelProperty(value = "角色标识符", required = true, example = "admin")
    private String roleKey;
    
    @ApiModelProperty(value = "角色描述", example = "系统管理员，拥有所有权限")
    private String description;
    
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
    
    @ApiModelProperty(value = "角色拥有的权限列表")
    private List<Permission> permissions;
} 